import requests

f='q_c1=6d75b21be72447c98c1511baf446c097|1516349645000|1516349645000; _zap=78ff8298-dbc5-46b9-9013-948e0686c88d; l_cap_id="ZDg5ZDViZGJiNDE2NDZhM2IzMmE1MWJmZmM5Y2MwNTc=|1517120633|4ab400a648c88fd0d53d6592401d36eae79e6c7e"; r_cap_id="NGRhZjY5MzBjYjIxNGU1MDgwYTFhNDJhYWYwNTZiNTc=|1517120633|17317eb4903318e06cdf1e7c7069d9ad01bb22fa"; cap_id="OTcwYTRkNGFhZGFhNDlmM2JhNzQ4MWUxOGMwYzc2ODg=|1517120633|2b321a63073a9cc73cebfdc14e96546a03458b42"; aliyungf_tc=AQAAAOFX4wXsngEA9Kf33pOhGsz6M+iY; _xsrf=cce5b0fc-70d4-4cc0-a34e-e1d9246b5998; d_c0="AJCsaC66FQ2PTneuN-anutSwaS6k2_BtWvI=|1517576391"; capsion_ticket="2|1:0|10:1517576883|14:capsion_ticket|44:ODM0MWZiM2Q0MDRlNGRlM2FmYTUzZjc1ZmJhMDY2Y2E=|ac90132c9c22fc7becb2106aeb9b67b5ea47e4733f0be54cd9af8b69c8253dab"; z_c0="2|1:0|10:1517576891|4:z_c0|92:Mi4xMjdRUkFBQUFBQUFBa0t4b0xyb1ZEU1lBQUFCZ0FsVk51N0JoV3dDdXQxV3hNanAzMFJOeDZuZmU4cUlFb3YyeWV3|864e075634ccd9c6626bc9af6d2c1faa537a485e080d58ef0bb15e7e0205baed"'
cookies = {}
for line in f.split(';'):
    # 其设置为1就会把字符串拆分成2份
    name, value = line.strip().split('=', 1)
    cookies[name] = value

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)'
                  ' Chrome/63.0.3239.132 Safari/537.36'
}
response = requests.get('https://www.zhihu.com', cookies=cookies, headers=headers)
print(response.text)
